/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */
package info.peigen.hotpot.business.product.core.domain;

import info.peigen.hotpot.business.product.facade.enums.ProductSpecDisplayPosition;
import info.peigen.hotpot.common.core.domain.DomainObject;
import jakarta.validation.constraints.NotEmpty;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

/**
 * <b>(ProductSpecification)</b>
 * 商品规格
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2023/11/29
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class ProductSpecification extends DomainObject {
    /** 规格组名 */
    @NotEmpty
    String groupName;
    /** 规格名 */
    @NotEmpty
    String name;
    /** 选项值 */
    @NotEmpty
    String value;
    /** 显示位置 */
    ProductSpecDisplayPosition position;
    /** 操作员 */
    String                     operatorId;
}
